﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynamicProperties.Tests
{
	class ChangeTestsHelper<TTarget,TProperty> where TTarget : class
	{
		public int CallCount { get; private set; }

		public TTarget LastTarget { get; private set; }

		public DynamicPropertyChangedParams<TTarget, TProperty> LastArgs { get; private set; }

		public void Delegate(TTarget target, DynamicPropertyChangedParams<TTarget, TProperty> args)
		{
			this.CallCount++;
			this.LastTarget = target;
			this.LastArgs = args;
		}
	}
}
